Tutor\Ecommerce\CheckoutController D

Total Complexity 139
Dependencies 18
Dependents 10
Total lines 1,137
Lines of code 712
Logical lines of code 402
Comment lines 264
Methods 19
Properties 2

Methods 19

Method Rating Maintainability Complexity Lines of code
prepare_checkout_items()
C
30 28 110
pay_now()
C
28
26 135
prepare_payment_data()
A
34 11 91
pay_incomplete_order()
A
41 13 51
add_warning_alert()
A
45 12 44
calculate_discount()
A
46 8 41
prepare_items()
A
47 8 35
restrict_checkout_page()
A
54 8 20
proceed_to_payment()
S
48 4 37
prepare_recurring_payment_data()
S
42 3 51
set_pay_now_alert_msg()
S
56 3 20
validate_pay_now_req()
S
56 3 19
get_courses_data_by_order_items()
S
59 3 15
create_checkout_page()
S
61 2 13
__construct()
S
62 2 11
is_coupon_applied_on_item()
S
78 2 3
get_page_url()
S
80 1 3
get_page_id()
S
79 1 3
ajax_get_checkout_html()
S
65 1 10